.PHONY: all clean

# MinGW/Msys paths
MINGWBIN :=/d/msys/mingw/bin
MSYSBIN :=/d/msys/bin
RM :=$(MSYSBIN)/rm.exe

MXMLC :=/d/sdk/flex/bin/mxmlc.exe

CC :=javac

OUTPUT := HelloWorld.swf

#SRC := \
#	App.cpp				\
#	util.cpp			\
#	background.cpp		\
#	objects.cpp			\
#	#bclog.cpp

#sources=$(wildcard *.cpp)

all: $(OUTPUT)



%.swf : %.as
	@echo 'Compiling $@ from $<. Basename: $*'
	@$(MXMLC) $<

clean:
	@$(RM) -f *.swf

#run:
	#cmd /c "..\tst.exe"

# -------------------------------------------
#
#  OLD
#
#
#CXX :=$(MINGWBIN)/g++.exe
#SDLDIR=/c/sdk/SDL-1.2.12
#INCDIR=$(SDLDIR)/include
#LIBDIR=$(SDLDIR)/lib
#CPPSRC := $(filter %.cpp, $(SRC))
#CSRC := $(filter %.c, $(SRC))
#OBJ := $(patsubst %.cpp, $(OBJDIR)/%.o, $(CPPSRC))


#SDL_CFLAGS := $(shell $(SDLDIR)/bin/sdl-config --cflags)
#SDL_LDFLAGS := $(shell $(SDLDIR)/bin/sdl-config --libs)

#CXXFLAGS := -I$(INCDIR) -Wall -D_GNU_SOURCE=1 -Dmain=SDL_main
#LDFLAGS := -L$(LIBDIR)  -mwindows
#LDLIBS := mingw32 SDLmain SDL SDL_ttf SDL_image opengl32
#LDLIBS := $(patsubst %,-l%,$(LDLIBS))

#OUTPUT :=../tst.exe
#OBJDIR :=../obj
